<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: IMovableObject类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_i_movable_object-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">IMovableObject类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>可执行位移动作的接口  
 <a href="class_i_movable_object.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_i_actable_object_8h_source.html">IActableObject.h</a>&gt;</code></p>
<div class="dynheader">
类 IMovableObject 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_i_movable_object.png" usemap="#IMovableObject_map" alt=""/>
  <map id="IMovableObject_map" name="IMovableObject_map">
<area href="class_i_actable_object.html" title="可执行动作对象的接口" alt="IActableObject" shape="rect" coords="111,0,212,24"/>
<area href="class_node.html" title="游戏渲染节点" alt="Node" shape="rect" coords="0,112,101,136"/>
<area href="class_widget.html" title="控件基类" alt="Widget" shape="rect" coords="222,112,323,136"/>
<area href="class_scene.html" title="游戏场景" alt="Scene" shape="rect" coords="111,168,212,192"/>
<area href="class_sprite.html" title="精灵贴图" alt="Sprite" shape="rect" coords="111,224,212,248"/>
<area href="class_abstract_button.html" title="按钮的抽象类" alt="AbstractButton" shape="rect" coords="333,168,434,192"/>
<area href="class_defult_widget.html" title="游戏默认窗口控件" alt="DefultWidget" shape="rect" coords="333,224,434,248"/>
<area href="class_label.html" title="标签控件" alt="Label" shape="rect" coords="333,280,434,304"/>
<area href="class_line_edit.html" title="单文本文本框" alt="LineEdit" shape="rect" coords="333,336,434,360"/>
<area href="class_list_widget.html" alt="ListWidget" shape="rect" coords="333,392,434,416"/>
<area href="class_progress_bar.html" title="进度条控件" alt="ProgressBar" shape="rect" coords="333,448,434,472"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7f4afd0c908b64978c3bcf488277909e"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_movable_object.html#a7f4afd0c908b64978c3bcf488277909e">getPosition</a> () const =0</td></tr>
<tr class="memdesc:a7f4afd0c908b64978c3bcf488277909e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取对象当前的位置  <a href="#a7f4afd0c908b64978c3bcf488277909e">更多...</a><br /></td></tr>
<tr class="separator:a7f4afd0c908b64978c3bcf488277909e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8b4fbc3484d994d97e0dfad3b2715a9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_movable_object.html#af8b4fbc3484d994d97e0dfad3b2715a9">setPosition</a> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos)=0</td></tr>
<tr class="memdesc:af8b4fbc3484d994d97e0dfad3b2715a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置对象的位置  <a href="#af8b4fbc3484d994d97e0dfad3b2715a9">更多...</a><br /></td></tr>
<tr class="separator:af8b4fbc3484d994d97e0dfad3b2715a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>可执行位移动作的接口 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7f4afd0c908b64978c3bcf488277909e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f4afd0c908b64978c3bcf488277909e">&#9670;&nbsp;</a></span>getPosition()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_vector2.html">Vector2</a> IMovableObject::getPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取对象当前的位置 </p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_vector2.html" title="2D向量">Vector2</a> </dd></dl>

<p>在 <a class="el" href="class_widget.html#a185d091871a0343ab304701d4b57b70d">Widget</a> , 以及 <a class="el" href="class_node.html#af5beedc257d3a9369abd7279ded0c369">Node</a> 内被实现.</p>

</div>
</div>
<a id="af8b4fbc3484d994d97e0dfad3b2715a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8b4fbc3484d994d97e0dfad3b2715a9">&#9670;&nbsp;</a></span>setPosition()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void IMovableObject::setPosition </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector2.html">Vector2</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置对象的位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td><a class="el" href="class_vector2.html" title="2D向量">Vector2</a>&amp; pos 位置 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>在 <a class="el" href="class_widget.html#a51acbd9bdb6838fcee359286cc58b7e0">Widget</a> , 以及 <a class="el" href="class_node.html#a0fe84278281a6b64799cac268171590f">Node</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/action/<a class="el" href="_i_actable_object_8h_source.html">IActableObject.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
